package com.qyl.deguru.dto;
/**
 * 商品类型
 * */
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
public class Shop implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	private Integer id;
//	private int id;
	private String title;
	private String brand_name;
	private double price;
	private double favorable_price;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date grounding_date;
	private int storage;
	private String image;
	private String description;
	private ShopType shopType;//商品类型
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date create_date;
	//加入购物车的数量
	private int buyNum;
	
	public int getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(int buyNum) {
		this.buyNum = buyNum;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
//	public int getId() {
//	return id;
//}
//public void setId(int id) {
//	this.id = id;
//}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getBrand_name() {
		return brand_name;
	}
	public void setBrand_name(String brand_name) {
		this.brand_name = brand_name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public double getFavorable_price() {
		return favorable_price;
	}
	public void setFavorable_price(double favorable_price) {
		this.favorable_price = favorable_price;
	}
	public Date getGrounding_date() {
		return grounding_date;
	}
	public void setGrounding_date(Date grounding_date) {
		this.grounding_date = grounding_date;
	}
	public int getStorage() {
		return storage;
	}
	public void setStorage(int storage) {
		this.storage = storage;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public ShopType getShopType() {
		return shopType;
	}
	public void setShopType(ShopType shopType) {
		this.shopType = shopType;
	}
	public Date getCreate_date() {
		return create_date;
	}
	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "Shop [id=" + id + ", title=" + title + ", brand_name="
				+ brand_name + ", price=" + price + ", favorable_price="
				+ favorable_price + ", grounding_date=" + grounding_date
				+ ", storage=" + storage + ", image=" + image
				+ ", description=" + description + ", shopType=" + shopType
				+ ", create_date=" + create_date + ", buyNum=" + buyNum + "]";
	}

	
}